const {webToken} = require("@common/utils")
const {send} = require("@/zy-common/utils/")
const { login } = require("./login.middleware")

class LoginController{
  async login(ctx,next){
    let {id,phone} = ctx.user
    let token = webToken({id,phone})
    send(ctx,200,'200','登录成功',{id,token})
  }
}

module.exports = new LoginController()